package com.fengxing.ams.web.action.view;

import java.util.List;

public class SubjectRatioVO {
	
	private String name;
	private Integer size;
	private List<SubjectRatioVO> children;
	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SubjectRatioVO other = (SubjectRatioVO) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getSize() {
		return size;
	}
	public void setSize(Integer size) {
		this.size = size;
	}
	public List<SubjectRatioVO> getChildren() {
		return children;
	}
	public void setChildren(List<SubjectRatioVO> children) {
		this.children = children;
	}
	@Override
	public String toString() {
		return "SubjectRatioVO [name=" + name + "]";
	}
	
}
